define([
	'jquery',
	'underscore',
	'backbone',
	'baseView',
	'text!forum/test/index.html'
], function($, _, Backbone, BaseView, tpl) {
	return BaseView.extend({
		// life-cycle hook method
		render: function(cb) {
			// console.log('test render, qs=%s', qs);
			var tmpl = _.template(tpl);
			$(this.el).html(tmpl);
			// return this;
			if (!$(this.el).is(":visible")) // if hide then show
				this.show();
			cb && cb();
		},

		events: {
			"click #btnTest1": "btnTest1"
		},

		btnTest1: function(event) {
			console.log('click btnTest1');
		}

	});
});